// 配置信息
//兄弟贴贴：wx27d52cce261cfb13//姐妹贴贴：wxcf28b045e97fb6c8//哥哥贴贴：wxdf9c4c54a1dc0700//大叔贴贴：wx5e6ed50b0fc05f6c//出物app：wxbc7aeaa95a622992

let appId = 'wxbc7aeaa95a622992'; // 默认
// #ifdef MP-WEIXIN
const accountInfo = wx.getAccountInfoSync();
appId = accountInfo.miniProgram.appId;
console.log("accountInfo",accountInfo)
// #endif

// #ifdef MP-KUAISHOU
 appId = 'ks715227919626951839'; // 默认
// #endif

import random from './random.js';
//uni.setStorageSync("DEVICE_ID",null)
let deviceid = uni.getStorageSync("DEVICE_ID")||random.random_char(32)
uni.setStorageSync("DEVICE_ID",deviceid)
let config = {
	webUrl:'https://dashu.api.5gtc.net',//服务器
	imgUrl:'https://dashu.img.5gtc.net',
	staticUrl:'http://123.186.147.150:9501/img/',
	websocketUrl:"wss://dashu.api.5gtc.net/wss",
	TabbarIndex:2,
	deviceid:deviceid,
	channel:0,//渠道 0和1=哥哥 2：大叔 3：姐妹 4：兄弟
};
if (appId === 'wxdf9c4c54a1dc0700' || appId === 'ks715227919626951839') {
  config.channel = 1; // 哥哥贴贴
} else if (appId === 'wx5e6ed50b0fc05f6c') {
  config.channel = 2; // 大叔贴贴
} else if (appId === 'wxcf28b045e97fb6c8') {
  config.channel = 3; // 姐妹贴贴
} else if (appId === 'wx27d52cce261cfb13') {
  config.channel = 4; // 兄弟贴贴
}else if (appId === 'wxbc7aeaa95a622992') {
  config.channel = 5; // 出物
}  else {
  config.channel = 0; // 渠道未知，设置为默认值
}
//config.mPAppId = appId
export default config;